<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, initial-scale=1.0, width=device-width" />
<meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
<title>Hello APP</title>
<link rel="stylesheet" type="text/css" href="../css/aui-flex.css" />
<link rel="stylesheet" type="text/css" href="../css/aui.css" />
<link rel="stylesheet" type="text/css" href="../css/common.css" />
  <style>
      /*弹窗*/
      body {
          background: transparent;
      }
      .popBox {
          left: 1.9rem;
          right: 1.9rem;
      }
      .popBox.mid {
          top: 50%;
          -webkit-transform: translate(0, -50%);
          transform: translate(0, -50%);
      }
      .que {
          font-size: 14px;
          color: #333333;
          text-align: center;
          padding: 1.8rem 2rem;
      }
      .bot-btn > div {
          width: 50%;
          font-size: 0.7rem;
          text-align: center;
          color: #fff;
          height: 2.5rem;
          line-height: 2.5rem;
      }
      .bot-btn > div.can {
          background: #ccc;
      }
  </style>
</head>
<body>
    <div class="popOverlay" tapmode onClick="api.closeFrame();"></div>
    <div class="popBox mid">
        <div class="que" id="tex"></div>
        <div class="aui-flex-col bot-btn">
            <div class="can" tapmode onClick="closePop();" id="can">取消</div>
            <div class="del bg-e7" tapmode onclick="queren()" id="queren">确认</div>
        </div>
    </div>
</body>
<script type="text/javascript" src="../script/import.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script type="text/javascript">
    var PAGE_PARAM;
    apiready = function() {
        api.parseTapmode();
        PAGE_PARAM = api.pageParam;
        $$('#tex').text(PAGE_PARAM.msg);
        $$('#can').text(PAGE_PARAM.left);
        $$('#queren').text(PAGE_PARAM.right);

    };
	function closePop(){
		if(PAGE_PARAM.cancelFn){
			api.execScript({
				name: PAGE_PARAM.wname,
				frameName: PAGE_PARAM.fname,
				script: PAGE_PARAM.cancelFn
			});
		}
		api.closeFrame();
	}
    function queren() {
        api.execScript({
            name: PAGE_PARAM.wname,
            frameName: PAGE_PARAM.fname,
            script: PAGE_PARAM.fun
        });
        api.closeFrame()
    }
</script>

</html>
